<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <!-- 资源引用页面 -->
    <#include "common/_commresource.html"/> 
    <title>随意论坛</title>
</head>

<body>
  	<!--  顶部引用页面 -->
    <#include "common/_commtop.html"/> 
<!-- start site's main content area -->
<section class="content-wrap">
<div class="container">
<div class="row">
<main class="col-md-8 main-content">

<#list result as x>          
<article id="${x['sectionId']}" class="post">
    <div class="post-head" style="word-wrap:break-word">
        <h1 class="post-title"><a href="#">${x['sectionName']!'木有标题！'}</a></h1>
        <div class="post-meta">
            <span class="author">作者：<a href="#">${x['nickName']!'木有名字'}</a></span> •
            <time class="post-date" datetime="2016年4月28日星期四上午10点14分" title="2016年4月28日星期四上午10点14分">${x['createTime']!'2017-01-24'}</time>
        </div>
    </div>
    <!--div class="featured-media">
        <a href="#"><img src="#" alt="#"></a>
    </div-->
    <div class="post-content" style="word-wrap:break-word">
        <p>${x['sectionRemark']!'木有内容！'}</p>
    </div>
    <div class="post-permalink">
        <a href="${request.contextPath}/section/sectionDetail?sectionId=${x['sectionId']}&pageSize=5" class="btn btn-default">阅读全文</a>
    </div>

    <footer class="post-footer clearfix">
        <div class="pull-left tag-list">
            <i class="fa fa-folder-open-o"></i>
            
        </div>
        <div class="pull-right share">
        </div>
    </footer>
</article>
</#list>
<!-- 分页 start -->
<!-- 不同页面传参不一致需要分开放 -->
<#include "common/_paginate.html"/>
<@paginate currentPage=pageNum totalPage=totalPages actionUrl="${request.contextPath}/index?pageSize=5&keyword=${top_key_word!}&pageNum=" />
<!-- 分页 end -->
</main>
<#include "common/_commright.html"/>
            </div>
        </div>
    </section>
<!-- 页脚 start -->
<#include "common/_friendshiplink.html"/>
<!-- 页脚 end -->
</body>
</html>